package com.example.threaddemo.fastjson;

/**
 * @Author：wlz
 * @Package：com.example.threaddemo.fastjson
 * @Project：threaddemo
 * @name：User
 * @Date：2023/3/30 23:17
 * @Filename：User
 */
//public static final Object parse(String text); // 把JSON文本parse为JSONObject或者JSONArray
//
//public static final JSONObject parseObject(String text)； // 把JSON文本parse成JSONObject
//
//public static final <T> T parseObject(String text, Class<T> clazz); // 把JSON文本parse为JavaBean
//
//public static final JSONArray parseArray(String text); // 把JSON文本parse成JSONArray
//
//public static final <T> List<T> parseArray(String text, Class<T> clazz); //把JSON文本parse成JavaBean集合
//
//public static final String toJSONString(Object object); // 将JavaBean序列化为JSON文本
//
//public static final String toJSONString(Object object, boolean prettyFormat); // 将JavaBean序列化为带格式的JSON文本
//
//public static final Object toJSON(Object javaObject); //将JavaBean转换为JSONObject或者JSONArray。

public class User {
    private String username;
    private String password;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
